<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .box {
            text-align: center;
        }

        .box>div {
            display: inline-block;
            margin: 200px 20px;
            border-radius: 20px;
            background-size: 100%;
            position: relative;
            background-position: center;
            transition: all 2s;
            overflow: hidden;
            box-shadow: 0 0 10px 10px yellowgreen;
        }

        .box>div:hover {
            background-size: 120%;
            box-shadow: 0 0 20px 40px #ccc;
        }

        .box>div:hover .content {
            width: 150px;
            height: 70px;
        }

        .content>span:nth-child(1) {
            font-weight: 600;
        }

        .content>span:nth-child(3) {
            display: none;
            line-height: 2.3;
            font-size: 15px;
        }

        .box>div:hover .content span:nth-child(3) {
            display: inline-block;
        }

        .bas {
            width: 150px;
            height: 220px;
            background-image: url(./images/篮球.png);
        }

        .foot {
            width: 150px;
            height: 220px;
            background-image: url(./images/足球.png);
        }

        .content {
            width: 150px;
            height: 30px;
            position: absolute;
            bottom: 0;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            background-color: rgb(15, 5, 5, 0.6);
            transition: all 2s;
        }

        span {
            color: white;
            font-family: 'Times New Roman', Times, serif;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="bas">
            <div class="content">
                <span>篮球</span><br>
                <span>篮球运动员正在投篮</span>
            </div>
        </div>
        <div class="foot">
            <div class="content">
                <span>足球</span><br>
                <span>足球运动员正在射门</span>
            </div>

        </div>
    </div>
</body>

</html>